package com.fun.feifun.modules.business.service;

import com.fun.feifun.modules.business.model.BusinessOrder;
import com.fun.feifun.modules.business.model.BusinessOrderLog;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fun.feifun.modules.business.model.dto.OrderLogSupplier;

import java.util.List;

/**
 * <p>
 * 业务订单日志 服务类
 * </p>
 *
 * @author wkf
 * @since 2024-06-20
 */
public interface IBusinessOrderLogService extends IService<BusinessOrderLog> {

    void saveLog(BusinessOrder order, String operationRemake, Integer index);

    void saveLog(BusinessOrder order, String operationRemake);

    List<BusinessOrderLog> getOrderLog(Long orderId);

    List<OrderLogSupplier> getOrderSupplierIds(List<Long> orderIds);

    BusinessOrderLog getMaxIndexSupplier(Long orderId);
}
